// Disable saving and team-switching, we need neither of those functions and they could break scripts.
enableSaving [false,false];
enableTeamSwitch false;

// Initialise functions library
[] execVM "initFunctions.sqf";
	
//Add Respawn Inventories
//Add West Inventories
[west, "WEST_LIGHT"] call BIS_fnc_addRespawnInventory;
[west, "WEST_STANDARD"] call BIS_fnc_addRespawnInventory;
[west, "WEST_LEADER"] call BIS_fnc_addRespawnInventory;
[west, "WEST_AT"] call BIS_fnc_addRespawnInventory;
[west, "WEST_SNIPER"] call BIS_fnc_addRespawnInventory;
[west, "WEST_LMG"] call BIS_fnc_addRespawnInventory;
[west, "WEST_MEDIC"] call BIS_fnc_addRespawnInventory;

//Add EAST Inventories
[EAST, "EAST_LIGHT"] call BIS_fnc_addRespawnInventory;
[EAST, "EAST_STANDARD"] call BIS_fnc_addRespawnInventory;
[EAST, "EAST_LEADER"] call BIS_fnc_addRespawnInventory;
[EAST, "EAST_AT"] call BIS_fnc_addRespawnInventory;
[EAST, "EAST_SNIPER"] call BIS_fnc_addRespawnInventory;
[EAST, "EAST_LMG"] call BIS_fnc_addRespawnInventory;
[EAST, "EAST_MEDIC"] call BIS_fnc_addRespawnInventory;

//Various Client Scripts
if (!isDedicated) then {
	[] execVM "client\group_manager.sqf";
	[] execVM "client\removeSideMarkers.sqf";
	[] execVM "client\player_markers.sqf";
	[true] execVM "client\chemlights.sqf";
	[] execVM "outlw_magRepack\MagRepack_init.sqf";
	[] execVM "admin.sqf";
	[] execVM "briefing.sqf";
	// Initialise AIS Injury System
	TCB_AIS_PATH = "ais_injury\";
	{[_x] call compile preprocessFile (TCB_AIS_PATH+"init_ais.sqf")} forEach (if (isMultiplayer) then {playableUnits} else {switchableUnits});
	//[] execVM "client\init_threads.sqf";
};

// Execute various script addons
["%1 --- Executing TcB AIS init.sqf",diag_ticktime] call BIS_fnc_logFormat;
tawvd_disablenone = true;
